/*
 * Copyright (C) 2021 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.andremion.louvre.util;

import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

/**
 * LogUtil
 */
public class LogUtil {
    private static HiLogLabel hiLogLabel = new HiLogLabel(HiLog.LOG_APP, 0x2010, "LogUtil");

    /**
     * d
     *
     * @param message Message
     */
    public static void debug(String message) {
        HiLog.debug(hiLogLabel, message);
    }

    /**
     * d
     *
     * @param message Message
     * @param tag     Tag
     */
    public static void debug(String tag, String message) {
        HiLog.debug(hiLogLabel, "TAG: %{public}s ; Message: %{public}s", tag, message);
    }

    /**
     * e
     *
     * @param message Message
     * @param tag     Tag
     */
    public static void error(String tag, String message) {
        HiLog.error(hiLogLabel, "TAG: %{public}s ; Message: %{public}s", tag, message);
    }

    /**
     * info
     *
     * @param message Message
     * @param tag     Tag
     */
    public static void info(String tag, String message) {
        HiLog.info(hiLogLabel, "TAG %{public}s ; Msg %{public}s", tag, message);
    }
}
